<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCWeb.Models.Doc>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Legislative Updates</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <h2>
        Legislative Updates
    </h2>
    <hr />
    <table id="document">
        <tr>
            <th>
                Title
            </th>
            <th>
                Modified Date
            </th>
            <th>
                Size(Kb)
            </th>
            <th>
            </th>
        </tr>
        <% foreach (var item in ViewData.Model)
           { %>
        <tr>
            <td class="name">
                <%= Html.Encode(item.Name)%>
            </td>
            <td>
                <%= Html.Encode(item.ModifiedDate.Value.ToShortDateString()) %>
            </td>
            <td>
                <%= Html.Encode(item.Size) %>
            </td>
            <td>
                <a target="_blank" href='<%= item.URLLink %>'>Download</a>
            </td>
        </tr>
        <% } %>
    </table>
</asp:Content>
